import schedule from "node-schedule";
import userConfig from "../config/juejin";

schedule.scheduleJob("0 * * *", async function () {
    const response = await fetch(userConfig.check_url, {
        method: "post",
        headers: {
            Referer: userConfig.url,
            Cookie: userConfig.cookie
        }
    });

    const result = await response.json();

    console.log(result);
});
